package com.kudian.common.exception;

/**
 * Created by Administrator on 2016/7/13.
 */
public class ApplicationException extends Exception {
    private int errcode;
    private String errmsg;

    public ApplicationException(int errcode, String errmsg) {
        this.errcode = errcode;
        this.errmsg = errmsg;
    }

    public int getErrcode() {
        return errcode;
    }
    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }
    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    @Override
    public String getMessage() {
        return errmsg;
    }
}
